package com.ruoyi.dictionaries.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.dictionaries.mapper.PoliticalStatusMapper;
import com.ruoyi.dictionaries.domain.PoliticalStatus;
import com.ruoyi.dictionaries.service.IPoliticalStatusService;

/**
 * 政治面貌Service业务层处理
 * 
 * @author gdslovehy
 * @date 2025-04-01
 */
@Service
public class PoliticalStatusServiceImpl implements IPoliticalStatusService 
{
    @Autowired
    private PoliticalStatusMapper politicalStatusMapper;

    /**
     * 查询政治面貌
     * 
     * @param id 政治面貌主键
     * @return 政治面貌
     */
    @Override
    public PoliticalStatus selectPoliticalStatusById(String id)
    {
        return politicalStatusMapper.selectPoliticalStatusById(id);
    }

    /**
     * 查询政治面貌列表
     * 
     * @param politicalStatus 政治面貌
     * @return 政治面貌
     */
    @Override
    public List<PoliticalStatus> selectPoliticalStatusList(PoliticalStatus politicalStatus)
    {
        return politicalStatusMapper.selectPoliticalStatusList(politicalStatus);
    }

    /**
     * 新增政治面貌
     * 
     * @param politicalStatus 政治面貌
     * @return 结果
     */
    @Override
    public int insertPoliticalStatus(PoliticalStatus politicalStatus)
    {
        return politicalStatusMapper.insertPoliticalStatus(politicalStatus);
    }

    /**
     * 修改政治面貌
     * 
     * @param politicalStatus 政治面貌
     * @return 结果
     */
    @Override
    public int updatePoliticalStatus(PoliticalStatus politicalStatus)
    {
        return politicalStatusMapper.updatePoliticalStatus(politicalStatus);
    }

    /**
     * 批量删除政治面貌
     * 
     * @param ids 需要删除的政治面貌主键
     * @return 结果
     */
    @Override
    public int deletePoliticalStatusByIds(String[] ids)
    {
        return politicalStatusMapper.deletePoliticalStatusByIds(ids);
    }

    /**
     * 删除政治面貌信息
     * 
     * @param id 政治面貌主键
     * @return 结果
     */
    @Override
    public int deletePoliticalStatusById(String id)
    {
        return politicalStatusMapper.deletePoliticalStatusById(id);
    }
}
